﻿
@{
    ViewBag.Title = "OBA包装清单";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <table id="table" lay-filter="table"></table>
        </div>
    </div>
</div>

@section Scripts{
    <script>
        initLayui();
        function initLayui() {
            layui.use(['table', 'layer', 'form', 'laydate'], function () {
                var table = layui.table;

                var options = {
                    elem: '#table'
                    , url: '/Quality/QueryObaPackss'
                    , method: "post"
                    , where: { obaNo: "@ViewBag.ObaNo" }
                    , page: true
                    , limit: 15
                    , limits: [15, 20, 25, 30, 40, 50]
                    , response: {
                        statusName: 'ErrCode'
                        , statusCode: 200
                        , msgName: 'ErrCode'
                        , countName: 'TotalCount'
                        , dataName: 'Data'
                    }
                    , cols: [[
                        { title: '序号', type: "numbers", width: 60 }
                        , { field: 'OrderNo', title: '订单号', minWidth: 150 }
                        , { field: 'WorkOrderNo', title: '工单号', minWidth: 150 }
                        , { field: 'CabinetNo', title: '柜号', minWidth: 100 }
                        , { field: 'PackBatchNo', title: '打包批次号', minWidth: 150 }
                        , { field: 'PackNo', title: '打包编号', minWidth: 150 }
                    ]]
                };
                table.render(options);
            });
        }
    </script>
}
